/*
 * @Author: Bo Cai
 * @Mail: caibo0520@qq.com
 * @Date: 2021-10-08 16:04:08
 * @LastEditors: Bo Cai
 * @LastEditTime: 2021-12-03 23:41:33
 */
import request from '@/utils/request'

const api_name = '/edu-service/video'

export default {

    saveVideoInfo(videoInfo) {
        return request({
            url: `${api_name}/save-video-info`,
            method: 'post',
            data: videoInfo
        })
    },

    getVideoInfoById(id) {
        return request({
            url: `${api_name}/video-info/${id}`,
            method: 'get'
        })
    },

    updateVideoInfoById(videoInfo) {
        return request({
            url: `${api_name}/update-video-info/${videoInfo.id}`,
            method: 'put',
            data: videoInfo
        })
    },

    removeById(id) {
        return request({
            url: `${api_name}/${id}`,
            method: 'delete'
        })
    }
}